Title: All Tags
---
<ul class="icons">           
    @foreach (IDocument tagDocument in Documents[Blog.Tags]
        .GroupBy(x => x.String(BlogKeys.Tag)).Select(x => x.Where(p => p.Get<int>(Keys.CurrentPage) == 1).First())
        .OrderByDescending(x => x.Get<int>(Keys.TotalItems)))
    {
        string tag = tagDocument.String(BlogKeys.Tag);
        string postCount = tagDocument.String(Keys.TotalItems);
        <li><a href="@(Context.GetLink(tagDocument)).html">@tag (@postCount)</a></li>
    }
</ul>